package cn.itcast.register;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class ZhuceActivity extends AppCompatActivity {
    private Button id_btndenglu;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_zhuce);

        id_btndenglu = findViewById(R.id.id_btndenglu);
        id_btndenglu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(ZhuceActivity.this, "我要开始登录了！", Toast.LENGTH_SHORT).show();
                Intent intent = new Intent();
                intent.setClass(ZhuceActivity.this,MainActivity.class);
                startActivity(intent);
            }
        });

    }
}